FROM java:8-jre

MAINTAINER zhanglingsi@gmail.com

ENV VERTICLE_FILE target/http-service-fat.jar

# Set the location of the verticles
ENV VERTICLE_HOME /opt/verticles

EXPOSE 9797

COPY $VERTICLE_FILE $VERTICLE_HOME/
COPY conf/docker.json $VERTICLE_HOME/


WORKDIR $VERTICLE_HOME
ENTRYPOINT ["sh", "-c"]
CMD ["java -jar http-service-fat.jar -cluster -conf docker.json"]
